< previous page page_303 next page >

Page 303
the menu to bring up the Procedure Attributes dialog box and make sure that the procedure ID is correct for each standard property.
When you've finished, click Finish to have the wizard add the code to the new control. At this point, you should save the control project.
Well, you've created a new control, right? Wrong. All you've accomplished so far is the creation of a shell that, if executed, does very little. You still need to modify the code generated to activate this new control's features.
Changing Properties at Designtime
To make it easier to modify the properties of the new control, you can use the Properties window or create a custom Property Pages dialog box for the new ActiveX control. Property Pages offer a way to display the control's properties in a logical, easy dialog box, as shown in Figure 11.6.
12181-0303a.gif
Figure 11.6.
Using Property Pages gives you an easy way of accessing the
properties of the control.
Each tab in the Property Pages dialog box represents one PropertyPage object, as shown in Figure 11.6. In the design window, the PropertyPage object doesn't display a tab or the OK, Cancel, and Apply buttons (these are provided automatically by the Property Pages dialog box and aren't part of any individual PropertyPage object). The Property Pages dialog box uses the Caption property of the PropertyPage object as the text for the tab.

 
< previous page page_303 next page >

If you like this book, buy it!